package com.hhs.storage.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author hhs
 * @since 2022-12-08
 */
@Data
public class TypeDic implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 类型分类
     */
    private String keyWord;

    /**
     * 名称
     */
    private String name;

    /**
     * 一级分类
     */
    private String typeId;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField("state")
    private Boolean state;

    //部门id
    private String departId;
    //父级id
    private String pid;

    //子菜单
    @TableField(exist = false)
    private List sub;
    @TableField(exist = false)
    private String updownname;

    //判断上游下游
    private String updown;
    //上游姓名
    private String upName;
    //下游姓名
    private String downName;
    //平层
    private String flatName;

}
